<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <!--[if lt IE 8]>
	    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin_main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin_form.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/flick/jquery-ui-1.8.10.custom.css" />
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
        <?php Yii::app()->clientScript->registerCoreScript('jquery.ui'); ?>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>
    <body style="font-size: 67.5%;">
        <div class="container" id="page">
            <div id="header">
                <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
            </div><!-- header -->
            <div id="mainmenu">
                <?php
                    $this->widget('application.extensions.mydropdownmenu.MMenu', array(
                        'menus' => array(
                            array('label' => 'Dashboard', 'url' => array('/admin')),
                            array('label' => 'Premissions', 
                                  'url' => array('/admin'), 
                                  'visible' => Yii::app()->user->isSuperuser(), 
                                  'subMenus' =>
                                    array(
                                        array('label' => 'User & Role assignment', 
                                              'url'   => array('/admin/rights')),
                                        array('label' => 'Auth items', 
                                              'url'   => array('/admin/rights/authItem')),
                                        /*
                                        array('label' => 'Create task', 
                                               'url'  => array('/index.php/admin/authItem/createauthitem/type/task')),
                                        array('label' => 'Create Operation', 
                                              'url'   => array('/index.php/admin/authItem/createauthitem/type/operation')),
                                        array('label' => 'Create Role', 
                                              'url'   => array('/index.php/admin/authItem/createauthitem/type/role')),
                                        */
                                    )
                                 ),//end user roles
                            array('label' => 'Logout', 'url' => array('/site/logout')),//end logout menu
                        )
                    ));
                ?>
            </div><!-- mainmenu -->
            <?php
            $this->widget('zii.widgets.CBreadcrumbs', array(
                'links' => $this->breadcrumbs,
                'homeLink' => '<a href="/admin">Dashboard</a>',
            ));
            ?><!-- breadcrumbs -->
            <?php echo $content; ?>
            <style type="text/css">
                .labels {
                    color: red;
                    background-color: white;
                    font-family: "Lucida Grande", "Arial", sans-serif;
                    font-size: 10px;
                    font-weight: bold;
                    text-align: center;
                    width: 40px;
                    border: 2px solid black;
                    white-space: nowrap;
                }
            </style>
            </div>
            <div id="footer">
    			Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
    			All Rights Reserved.<br/>
            <?php echo Yii::powered(); ?>
        </div><!-- footer -->
        </div><!-- page -->
        <script type="text/javascript">
            $(document).ready(function(){
                $(".button").button();
            })
        </script>
    </body>
</html>
